package com.cpj.threadLocal;

import com.cpj.base.model.RequestParam;

public class RequestThreadLocal {
    private RequestThreadLocal(){
    }
    //ConsoleUserVo是存储用户信息的实体类我就不说了
    private static final ThreadLocal<RequestParam> LOCAL = new ThreadLocal<RequestParam>();

    public static void set(RequestParam requestParam){
        LOCAL.set(requestParam);
    }

    public static RequestParam get(){
        return LOCAL.get();
    }

    public static void remove(){
        LOCAL.remove();
    }
}
